﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;
using Ch9_Portable.HTMLHelpers;
using Ch9RSS_Universal.ViewModels;

namespace Ch9RSS_WP8
{
    public partial class ItemPage : PhoneApplicationPage
    {
        public ItemPage()
        {
            InitializeComponent();
            this.DataContext = App.ItemVM;
            this.Loaded += ItemPage_Loaded;
        }

        ItemViewModel viewModel { get { return (ItemViewModel)this.DataContext; } }

        void ItemPage_Loaded(object sender, RoutedEventArgs e)
        {
            itemContentView.NavigateToString(CSSValues.WinValue + viewModel.Ch9Post.description);
        }
    }
}